<template>
<div>
  <router-link :to="`/game/${id}`" class="container">
    <div class="id">
      {{id}}
    </div>
    <div class="name">
      {{name}}
    </div>
  </router-link>
</div>
</template>

<script>
export default {
name: "LevelBlock",
  props: {
    id: Number,
    name: String
  }
}
</script>

<style scoped>
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100px;
  height: 100px;
  border: 1px solid #f3f4f5;
}

.container:hover {
  border: 1px solid red;
  cursor: pointer;
}

.id {
  font-size: 48px;
  text-align: center;
}
</style>